package main

import (
	"image/jpeg"
	"image/png"
	"os"

	"code.google.com/p/jnj/cmd/util"
)

func main() {
	die := util.Die
	img, err := png.Decode(os.Stdin)
	die(err, "error decoding png from stdin")
	err = jpeg.Encode(os.Stdout, img, nil)
	die(err, "error encoding jpeg to stdout")
}
